package cn.tedu.kaifanlav1.business.service.impl;

import cn.tedu.kaifanlav1.business.mapper.BusinessMapper;
import cn.tedu.kaifanlav1.business.pojo.dto.BusQuery;
import cn.tedu.kaifanlav1.business.pojo.vo.BusinessVO;
import cn.tedu.kaifanlav1.business.service.BusinessService;
import cn.tedu.kaifanlav1.user.pojo.vo.UserVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
/* 业务层实现类上要加@Service注解,表示该类是业务层实现类 */
@Service
public class BusinessServiceImpl implements BusinessService {
    @Autowired
    BusinessMapper businessMapper;

    @Override
    public List<BusinessVO> selectBus(BusQuery busQuery) {
        log.debug("查询用户:BusQuery={}", busQuery);
        List<BusinessVO> list = businessMapper.selectBus(busQuery);
        return list;
    }
}
